<?php
class zShang_View_Helper_PageUrl extends Zend_View_Helper_Abstract
{
    public $query = '';
    public function pageUrl($params = array(), $reset = FALSE){        
        $purl = $this->view->url($params, NULL, $reset);
        if (!empty($_SERVER['QUERY_STRING'])) {
            $this->query = '?'.$_SERVER['QUERY_STRING'];
        }
        
        $purl .= $this->query;
        return $purl;
    }
}